<?php

use peng\core\Form;
use peng\helpers\Html;
use common\dao\dd\CityDao;

$citys = CityDao::getSingleton()->get();

?>

<?php $form = Form::begin() ?>
<div id="mainbody" class="CWL CWR">
    <div id="infolist">
        <div id="info">
            <div id="infosl" class="addinfol">
                <table cellspacing="0" border="0" id="infoleft" width="230">
                    <tr>
                        <th colspan="2">当前城市发布货源信息</th>
                    </tr>
                    <tr>
                        <td class="txtright">货源*****************</td>
                    </tr>
                    <tr>
                        <td class="txtright">货源*****************</td>
                    </tr>
                    <tr>
                        <td class="txtright">货源*****************</td>
                    </tr>
                    <tr>
                        <th colspan="2">当前城市发布空车信息</th>
                    </tr>
                    <tr>
                        <td class="txtright">空车******************</td>
                    </tr>
                    <tr>
                        <td class="txtright">空车******************</td>
                    </tr>
                    <tr>
                        <td class="txtright">空车******************</td>
                    </tr>
                </table>	
                <div>&nbsp;</div>
                <div class="ad">                  
                    <p>可以云云xxxxxxxxxxx的广告</p>
                    <p style="padding-left:10px;padding-top:10px;"> <img src="images/12.jpg" width="230px"></p>
                </div>
            </div>
            <div id="infosr" class="addinfor">
                <table cellspacing="0" border="0" id="inforight" class="infoheadtab">
                    <tr>
                        <th colspan="2" class="infoheadth">空车信息</th>
                    </tr>
                    <tr>
                        <td class="txtright">信息标题:</td>
                        <td class="txtleft"><?php echo $form->activeText($this->model, 'gtitle') ?></td>
                    </tr>
                    <tr>
                        <td class="txtright">起始地址:</td>
                        <td class="txtleft">
                            <?php echo $form->activeSelect($this->model, 'startcity',$citys) ?>                         
                            <?php echo $form->activeText($this->model, 'startaddr') ?></td>
                    </tr>
                    <tr>
                        <td class="txtright">目的地址:</td>
                        <td class="txtleft">
                            <?php echo $form->activeSelect($this->model, 'endcity',$citys) ?>                         
                            <?php echo $form->activeText($this->model, 'endaddr') ?></td>
                    </tr>
                    <tr>
                        <td class="txtright">运输类型:</td>
                        <td class="txtleft">
                            <?php echo $form->activeRadio($this->model, 'gtype',array('仓储'=>'1',
                                '托运'=>2,
                                '空车配货'=>3,
                                '航空运输'=>4,
                                '全国零担'=>5,
                                '进出口报关'=>6,
                                '货运代理'=>7,)) ?></td>
                    </tr>
                    <tr>
                        <td class="txtright">组货方式:</td>
                        <td class="txtleft">
                              <?php echo $form->activeRadio($this->model, 'ggroup',array('零整不限'=>'1',
                                '整车'=>'2',
                                '整舱'=>'3',
                                '集装箱'=>'4',
                                '拼货'=>'5',
                                '零担'=>'6')) ?></td>
                    </tr>						
                    <tr>
                        <td class="txtright">是否往返:</td>
                        <td class="txtleft">
                              <?php echo $form->activeRadio($this->model, 'isdouble',array('单向'=>'1', '双向'=>'2')) ?></td>
                    </tr>
                    <tr>
                        <td class="txtright">有无中转:</td>
                        <td class="txtleft">
                            <?php echo $form->activeRadio($this->model, 'isconnect',array('有'=>'1', '无'=>'2')) ?></td>
                    </tr>
                    <tr>
                        <td class="txtright">报价:</td>
                        <td class="txtleft"><?php echo $form->activeText($this->model, 'price') ?></td>
                    </tr>
                    <tr>
                        <td class="txtright">联系人:</td>
                        <td class="txtleft"><?php echo $form->activeText($this->model, 'contact') ?></td>
                    </tr>
                    <tr>
                        <td class="txtright">联系电话:</td>
                        <td class="txtleft"><?php echo $form->activeText($this->model, 'phone') ?></td>
                    </tr>
                    <tr>
                        <td class="txtright">发布描述:</td>
                        <td class="txtleft"><?php echo $form->activeText($this->model, 'gcontent') ?></td>
                    </tr>
                    <tr>
                        <th colspan="2" class="infoheadth">其他相关信息</th>
                    </tr>
                    <tr>
                        <td class="txtright">微信:</td>
                        <td class="txtleft"><?php echo $form->activeText($this->model, 'weixin') ?></td>
                    </tr>
                    <tr>
                        <td class="txtright">联系Email:</td>
                        <td class="txtleft"><?php echo $form->activeText($this->model, 'email') ?></td>
                    </tr>
                    <tr>
                        <td class="txtright">QQ:</td>
                        <td class="txtleft"><?php echo $form->activeText($this->model, 'qq') ?></td>
                    </tr>
                    <tr>
                        <td class="txtright">常运路线:</td>
                        <td class="txtleft"><?php echo $form->activeText($this->model, 'email') ?></td>
                    </tr>
                    <tr>
                        <td class="txtright">配货短信:</td>
                        <td class="txtleft">
                             <?php echo $form->activeRadio($this->model, 'rgtype',array('接收'=>'1', '不接收'=>'2')) ?>
                            </td>
                    </tr>
                    <tr>
                        <td class="txtright">常驻地址:</td>
                        <td class="txtleft"><input id="txtEndH"/></td>
                    </tr>
                    <tr>
                        <td class="txtright">紧急联系电话:</td>
                        <td class="txtleft"><?php echo $form->activeText($this->model, 'tempcontact') ?></td>
                    </tr>
                    <tr>
                        <td colspan="2" style="padding-left:100px">
                            <?php echo Html::submitButton('发布') ?> 
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <span class="clr"></span>
    </div>	
</div>
<?php Form::end(); ?>
